package com.zhaowei.allinpay.order;


import com.zhaowei.allinpay.DemoUtils;
import com.zhaowei.allinpay.IDemoHandler;
import org.json.JSONObject;

public class DepositApplyHandler implements IDemoHandler {
    @Override
    public JSONObject getRequestParams() throws Exception {
        String bizOrderNo = System.currentTimeMillis() + "cz";

        JSONObject quickPayH5 = new JSONObject();
        quickPayH5.put("bankCardNo", DemoUtils.rsaEncrypt("6228483232323256666"));
        quickPayH5.put("amount", 20000L);
       
        JSONObject codepaya = new JSONObject();
        codepaya.put("amount",50);
        codepaya.put("authcode","2800012528218522444");
        
        JSONObject realnamepay = new JSONObject();
        realnamepay.put("bankCardNo", DemoUtils.rsaEncrypt("6228483232323256666"));
        realnamepay.put("amount", 20000L);
        
        JSONObject pospay_sz = new JSONObject();
        pospay_sz.put("amount",20000);
        
        JSONObject payMethod = new JSONObject();
//        payMethod.put("CODEPAY_A",codepaya);
//        payMethod.put("QUICKPAY_PC", quickPayH5);
        payMethod.put("REALNAMEPAY", realnamepay);
//        payMethod.put("POSPAY_SZ", pospay_sz);
        
        JSONObject param = new JSONObject();
        param.put("bizOrderNo", bizOrderNo);
        param.put("bizUserId", "zhanxh");
        param.put("accountSetNo", "12985739202038");
        param.put("amount", 20000L);
        param.put("fee", 0);
        param.put("validateType", 1);
        param.put("frontUrl", "http://122.227.225.142:23661/gateway/getPayFront.jsp");
        param.put("backUrl", "http://122.227.225.142:23661/test/recievePayBack.jsp");
//        param.put("ordErexpireDatetime", "");
        param.put("payMethod", payMethod);
        param.put("goodsName", "飞机");
        param.put("industryCode", "1010");
        param.put("industryName", "保险行业");
        param.put("source", 2);
        param.put("summary", "testtest_summar");
//        param.put("extendInfo", "");

        return param;
    }
}
